package com.matrix.java.chap_18;

public class Ex18_06 {
    public static void main(String[] args) {
        System.out.println(m(10));
    }

    public static double m(double i) {
        return i == 1 ? (1.0 / 2) : i / (i + 1) + m(i - 1);
    }
}
